package com.ray.bean;

import org.apache.http.impl.cookie.PublicSuffixDomainFilter;

import lombok.Data;

@Data
public class WarehouseInSumMoneyBean {
	 private String id;//id 主键	
	 private String type;//出入库类型 目前只有入库
	 private String purchaseId;//采购单主表id
	 private String purchaseOrderDetailId;//采购投料对应表id
	 private String materialName;//物料名称
	 private String materialType;//物料类型
	 private String materialCode;//物料代码
	 private String color;//色号
	 private String colorDescription;//颜色描述
	 private String model;//规格
	 private String inCountUnit;//入库单位
	 private Double inCountPrice;//入库单价
	 private String inOutUnit;//出入库单位
	 private String outCountPrice;//出库单价
	 private String orderId; //订单编号
	 private String factoryNo;//工厂型号
	 private String coustomId;//客户型号 
	 private Double count;//数量
	 private String isBalance;//是否结算 1 已结算  其他 未结算
	 private Double money;//已结算金额
	 private String estimatedPay;
	 private String company; //公司
	 private String createTime;//创建人
	 private String createUser;//创建时间
	 private String balanceTime;//结算时间
	 private String balanceUser;//结算人
	 private Integer subDate;//当天距离结算日相差天数 ---结算日-当前时间
	 private String providerName; 
	 private String purchaseTime;
	 private String inCountTime;
	 private Double receiptPaymentPrice;//收付款金额
	 private Double inOutMoney;//出入库金额
	 private String inDay;//入库时间
	 
	 private Integer materialDeptId;//物料归属部门
	 private String materialDeptName;//物料归属部门名称
	 
	 private String typeStr;//类型字符串
	 private String balanceStr;//是否结算字符串
	 
	 private String  estimatePayTime;//预计付款时间
	 
	 private Integer isStages;//是否分期 0不分 1分期
	 private Integer stagesCount;//分期数
	 private Integer stagesInterval;//分期间隔
	
	 private String payTime;//付款时间
	 
	 private String lastPayTime;//上次付款时间
	 
	 private Double totalPayable;//本月应付
	 private Double payInThisMonth;//本月实付
	 private Double beforeSumMoney;//之前应付总额
     private Integer aleradyPayCount;//已付期数
     
     private Double addReducePrice;//增减金额
     
     private Integer isTax;//是否含税 1不含税 2 含税
     private String isTaxStr;//是否含税字符串
	 
     private  String defaultWarehouse;//默认仓位
     public void setIsTaxStr() {
    	 if(this.getIsTax()==0) {
    		 this.isTaxStr = "无";
    	 }
    	 if(this.getIsTax()==1) {
    		 this.isTaxStr = "不含税";
    	 }
    	 if(this.getIsTax()==2) {
    		 this.isTaxStr = "含税";
    	 }
     }
     
     
	 public void setTypeStr() {
		 if(this.getType().equals("3")) {
			this.typeStr="库存采购入库";
		 }else {
			 this.typeStr="订单采购入库";
		 }
	 }
	 
	 public void setBalanceStr() {
		 if(this.getIsBalance().equals("1")) {
			 this.balanceStr="已结算";
		 }else {
			 this.balanceStr="未结算";
		 }
	 }
	 
	 
}
